const tokenName = 'hmtt_mobile_token'
const historiesName = 'hmtt_mobile_histories'
export const getLocalToken = () => JSON.parse(localStorage.getItem(tokenName))
export const setLocalToken = (val) => localStorage.setItem(tokenName, JSON.stringify(val))
export const removeLocalToken = () => localStorage.removeItem(tokenName)
export const setLocalHistories = (val) => localStorage.setItem(historiesName, JSON.stringify(val))
export const getLocalHistories = () => JSON.parse(localStorage.getItem(historiesName))

